home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 4
/
Aminet 4 - November 1994.iso
/
aminet
/
comm
/
net
/
amitcp_ups10.readme
< prev
next >
Wrap
Text File
|
1994-10-08
|
5KB
|
140 lines
Short: Nice little AmiTCP file transmission program
Type: comm/net
Uploader: ch@irb.informatik.uni-dortmund.de
Author: ???, amiga port by ch@irb.informatik.uni-dortmund.de
Hello Netters,
I wanted to know how difficult it is to create a daemon suitable for
AmiTCP. I liked the little program "ups" we use at the university of
Dortmund for sending files between users and so I took the source
to my amiga.
Here's the result.
Be warned:
I didn't take much effort in making a clean port but I hope I
didn't introduce much new bugs :-)
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
! But as ever: You got what you paid for, use at your own risk.!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Take a look at the original README to see what ups does.
Here a short summary:
1. Send the files 'a', 'b' and 'c' to a <user> on <host>:
ups user@host a b c
2. Look for arrived files
ups -q
3. Receive files
ups
The port was done using SAS 6.3 and AmiTCP 2.0.
Installation on amitcp
1) Add ups to the table of known ports in amitcp:db/services as follows:
ups 600/tcp
2) Add ups to the inetd configuration file amitcp:db/inetd.conf:
ups stream tcp nowait root amitcp:bin/upsd upsd
3) Copy ups, upsd and ups-sendmail to amitcp:bin.
4) Set USERNAME in your user-startup to your login name.
Set UPS_USERS to a colon separated list of users able to
receive files via ups.
I use:
setenv USERNAME alph
setenv UPS_USERS alph:ch
5) Make an "assign ups-spool: <somewhere>" to your incoming
spool directory.
Changes to the un*x version:
- Since there's no semi-official port of /etc/password stuff I
made the following assumptions:
Sender:
The name of the sender is obtained from the
environment variable USERNAME, the name of the
host from HOSTNAME.
Receiver:
The ups daemon will accept incoming files
only for users listed in UPS_USERS, e.g.
"ups alph@alph3000 mytreasure" will only be legal if
UPS_USERS contains 'alph' on the host alph3000.
- Since there's no semi-official port of /etc/aliases I disabed
the alias feature of ups.
- On un*x boxes ups uses mail to inform the user about
new files. To keep it simple I include a fake sendmail
(ups-sendmail) which just opens a Console-Window
containing the mail normally send :-)
You may replace ups-sendmail with your own program.
It should accept sendmail-like parameters and will get it's
Input via stdin.
Notes:
- When sending files between amigas only un*x-like protection bits
will be preserved. Sending format is un*x-format to be
compatible with the un*x version.
It should be easy to enhance the protocol to identify
an amiga on the other side and behave according to that.
- I'm using my s_socket layer instead of changing the read/write
calls because of pure lazyness.:-) (I used it extensively in my
port of ncftp)
As I said before I didn't put much effort in changing the ups source
so you're welcome to proceed.
I hope you enjoy it,
Carsten Heyl
You may try to reach me via email at ch@irb.informatik.uni-dortmund.de.
============================= Archive contents =============================
Original Packed Ratio Date Time Name
-------- ------- ----- --------- -------- -------------
94 69 26.5% 03-Oct-93 16:52:40 amiga/grp.h
0 0 0.0% 03-Oct-93 15:49:56 amiga/ndbm.h
8987 3474 61.3% 10-Oct-93 16:31:20 amiga/popen.c
82 71 13.4% 10-Oct-93 16:31:22 amiga/popen.h
192 104 45.8% 03-Oct-93 16:05:08 amiga/pwd.h
28 28 0.0% 02-Oct-93 10:56:24 amiga/RCS_LINK
10663 2975 72.0% 03-Oct-93 17:48:44 amiga/s_socket.c
6384 1870 70.7% 03-Oct-93 15:48:38 amiga/s_socket.h
0 0 0.0% 03-Oct-93 15:51:12 amiga/sys/file.h
0 0 0.0% 03-Oct-93 15:50:08 amiga/sys/wait.h
786 412 47.5% 03-Oct-93 18:39:04 amiga/syslog.h
679 359 47.1% 03-Oct-93 14:29:24 orig/Makefile
1436 743 48.2% 03-Oct-93 14:29:24 orig/README
1579 745 52.8% 03-Oct-93 14:29:24 orig/ups.1
10250 3696 63.9% 03-Oct-93 14:29:24 orig/ups.c
8129 3040 62.6% 03-Oct-93 14:29:24 orig/upsd.c
3140 1558 50.3% 10-Oct-93 17:48:04 README.amiga
1005 548 45.4% 10-Oct-93 17:58:46 SMakefile
250 149 40.4% 10-Oct-93 16:31:50 sys.h
28552 16722 41.4% 10-Oct-93 17:54:50 ups
12696 8041 36.6% 10-Oct-93 17:55:34 ups-sendmail
735 445 39.4% 10-Oct-93 16:39:48 ups-sendmail.c
12697 4349 65.7% 10-Oct-93 17:10:24 ups.c
1948 875 55.0% 10-Oct-93 17:41:34 ups.man
344 166 51.7% 03-Oct-93 16:11:22 ups_protos.h
26360 15192 42.3% 10-Oct-93 17:55:26 upsd
10829 3916 63.8% 10-Oct-93 17:26:54 upsd.c
322 156 51.5% 03-Oct-93 16:11:52 upsd_protos.h
-------- ------- ----- --------- --------
148167 69703 52.9% 12-Oct-93 16:28:16 28 files